home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
utils
/
which5.zoo
/
readme.st
< prev
next >
Wrap
Text File
|
1992-07-06
|
967b
|
26 lines
this was ported to ST from a code posted to comp.sources.misc some time ago.
it is meant as a replacement for the tcsh which command. it will find both
aliased and executables (but not shell builtins). it also has a "-a" option
which will find all instances of the given command (not just the first) that
are in the PATH.
I use it as an alias by putting this in tcsh.rc (assuming escchar is `^'):
alias wh 'alias ^!$ | g:\gnu\bin\which -i ^!*'
where g:\gnu\bin\which is this which.ttp. then use wh like which. also
supports -a. try "wh -a which". is slower than tcsh which since there is
no hashing (searches path directly). still, i prefer it if only for -a.
included is the source (with #ifdef __GNUC__ and atarist where it was
changed from orig), nroff manpage and nroff'ed manpage for use with manpager.
check makefile before building. the .ttp was built with gcc 1.40 with MiNT
libs at PL 19.
enjoy...
-bill
rosenkra@convex.com